package cn.csc.module.order.api.order.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.List;

/**
 * @author liuchuang
 * @version 1.0
 * @modify
 * @since 2024/11/21 15:17
 */
@Data
public class OrderWithItemRespDTO {

    @ApiModelProperty(value = "订单ID" )
    private BigInteger id;

    @ApiModelProperty(value = "用户ID" )
    private BigInteger userId;

    @ApiModelProperty(value = "总值" )
    private BigDecimal total;

    @ApiModelProperty(value = "订单状态 1:待付款 2:待发货 3:待收货(已发货) 5:成功 6:失败" )
    private Integer status;

    @ApiModelProperty(value = "订单商品总数" )
    private Integer allCount;

    @ApiModelProperty(value = "是否已支付，1.已支付0.未支付" )
    private Integer isPayed;

    @ApiModelProperty(value = "商户订单号" )
    private String  merchantOrderId;


    @ApiModelProperty(value = "订单子项" )
    private List<OrderItemDTO> orderItems;




}
